import XMind from './lib/xMind.js'

const mind = new XMind('#cavans',{
    value:[{
        id:1,
        text:'1',
        note:'note',
    }]
})
mind.addNode({
    id: 'root',
    text: '中心主题',
    x: 200, y: 100, width: 100, height: 40, radius: 8,
    fillColor: '#fff', strokeColor: '#333', lineWidth: 1, fontSize: 14,
    parentId: null
});
mind.addNode({
    id: 'child1',
    text: '子节点1',
    x: 400, y: 200, width: 100, height: 40, radius: 8,
    fillColor: '#fff', strokeColor: '#333', lineWidth: 1, fontSize: 14,
    parentId: 'root'
});
mind.addNode({
    id: 'child1-1',
    text: '子节点1-1',
    x: 400, y: 200, width: 100, height: 40, radius: 8,
    fillColor: '#fff', strokeColor: '#333', lineWidth: 1, fontSize: 14,
    parentId: 'child1'
});